Gradual Encapsulation

نویسنده

  • Stephan Herrmann
چکیده

Strictly enforced encapsulation is a key concept for modular software designs. However, in many situations like unanticipated reuse, productivity can be raised by a more flexible approach to encapsulation. Also the discussion about the role of “obliviousness” in aspect-oriented programming is one instance of a general conflict between strictness and flexibility. Here, different technologies take different stands and the choice of a particular technology locks a project into prioritizing one side over the other. In this paper we suggest that this choice should not be determined by technology but technology should support the co-existence of encapsulation and its inverse — decapsulation — within a single system. We postulate four principles that define a solution space, called “gradual encapsulation”, in which each project should find the best fitting balance between encapsulation and decapsulation with the option to shift this balance during the life time of a system. We use the programming language ObjectTeams/Java for illustrating how encapsulation and decapsulation can be supported by technology and how the four principles can be implemented on top of such technology.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Gradual Ownership Types

Gradual Ownership Types are a framework allowing programs to be partially annotated with ownership types, while providing the same encapsulation guarantees. The formalism provides a static guarantee of the desired encapsulation property for fully annotated programs, and dynamic guarantees for partially annotated programs via dynamic checks inserted by the compiler. This enables a smooth migrati...

متن کامل

Impact of charge variation on the encapsulation of nanoparticles by virus coat proteins.

Electrostatic interaction is the driving force for the encapsulation by virus coat proteins of nanoparticles such as quantum dots, gold particles and magnetic beads for, e.g., imaging and therapeutic purposes. In recent experimental work, Daniel et al (2010 ACS Nano 4 3853-60) found the encapsulation efficiency to sensitively depend on the interplay between the surface charge density of negativ...

متن کامل

Encapsulation of sulfur with thin-layered nickel-based hydroxides for long-cyclic lithium–sulfur cells

Elemental sulfur cathodes for lithium/sulfur cells are still in the stage of intensive research due to their unsatisfactory capacity retention and cyclability. The undesired capacity degradation upon cycling originates from gradual diffusion of lithium polysulfides out of the cathode region. To prevent losses of certain intermediate soluble species and extend lifespan of cells, the effective en...

متن کامل

Gradual Refinement Blending Pattern Matching with Data Abstraction

Pattern matching is advantageous for understanding and reasoning about function definitions, but it tends to tightly couple the interface and implementation of a datatype. Significant effort has been invested in tackling this loss of modularity; however, decoupling patterns from concrete representations while maintaining soundness of reasoning has been a challenge. Inspired by the development o...

متن کامل

Software Reengineering Patterns

The problem of reengineering of legacy systems, in the widest sense, is widely recognised as one of the most signiicant challenges facing software engineers. So-called legacy systems are normally, but not necessarily, large systems built in an era before encapsulation and com-ponentisation were regarded as fundamental tenets of design. Through a gradual process of accretion and change, they hav...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:
  • Journal of Object Technology

دوره 7  شماره 

صفحات  -

تاریخ انتشار 2008